package edu.szte.ovrt.datahandler.ui.console;

import java.util.TreeMap;

/**
 * A map of {@link DialogInputItem} which should be read from user.
 * 
 * @author Péter Török
 */
public class DialogInputMap extends TreeMap<String, DialogInputItem> {

	public void add(final String key, final String title) {
		add(key, title, false);
	}

	public void add(final String key, final String title, final Boolean emptyValid) {
		final DialogInputItem item = new DialogInputItem(title, emptyValid);
		put(key, item);
	}
}
